﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Pavilion.DesignerTool.ViewTools.ConnectableListBox
{
    public class AnimationNodeWrapper : NodeBaseWrapper
    {
        private AnimationNode animationNode;
        private AnimationResourceData animationResource;

        public AnimationData AssociatedAnimation { get { return animationResource.GetAnimationData(animationNode.Animation); } set { animationNode.Animation = value.Animation; } }

        public AnimationNodeWrapper(AnimationNode animationNode, AnimationResourceData animationResource) : base(animationNode)
        {
            this.animationNode = animationNode;
            this.animationResource = animationResource;
        }
    }
}
